package com.scau.ums.mapper;


import com.scau.ums.model.Suggestion;
import com.scau.ums.util.dao.SelectByPageSql;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * author: 莫伟杰
 * date： 2019/7/24 11:03
 */
public interface CustomSuggestionMapper{
    @SelectProvider(method = "selectByPageSetOrderByClause",type = SelectByPageSql.class)
    public List<Suggestion> selectByPageSetOrderByClause
            (String table, String orderClause, int startIndex, int pageSize);

    @SelectProvider(method = "selectRowByPageSetOrderByClause",type = SelectByPageSql.class)
    public List<Suggestion> selectRowByPageSetOrderByClause
            (String table, String orderClause, int startIndex, int pageSize,String whereClause);

}
